<template>
  <iframe id="iframepage" onload="iframeOnload()" :src="pdf_src"  :width="pdf_width+'px'" :height="pdf_height" ><!--onreadystatechange="readystatechange()"-->
        This browser does not support PDFs.
  </iframe>
</template>

<script>
export default {
  props:{
    pdf_src:{
      type:String,
      required:true
    },
    pdf_width:{
      type:String,
      default: "100%"
    },
    pdf_height:{
      type:Number,
      default: "100%"
    }
  },
  created() {
  },
  mounted() {
    this.$nextTick(action => {
      this.initEvent();
    });
  },
  methods: {
    initEvent() {}
  }
}
</script>
<style scoped>
  #full {
    overflow: hidden;
  }
  #pdf {
    display: block;
  }
</style>
